<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Home</title>
    <meta name="description" content="">
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,400italic,700' rel='stylesheet' type='text/css'>
    <link href="${pageContext.request.contextPath}/css/font-awesome.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/templatemo-style.css" rel="stylesheet">

</head>
<body>
<!-- Left column -->
<div class="templatemo-flex-row">
    <div class="templatemo-sidebar">
        <header class="templatemo-site-header">
            <div class="square"></div>
            <h1>运营商后台管理</h1>
        </header>
        <div class="profile-photo-container">
            <img src="${pageContext.request.contextPath}/assets/images/profile-photo.jpg" alt="Profile Photo" class="img-responsive">
            <div class="profile-photo-overlay"></div>
        </div>
        <div class="mobile-menu-icon">
            <i class="fa fa-bars"></i>
        </div>
        <nav class="templatemo-left-nav">
            <ul>
                <li><a href="#" class="active"><i class="fa fa-home fa-fw"></i>首页</a></li>
                <!--<li><a href="data-visualization.html"><i class="fa fa-bar-chart fa-fw"></i>Charts</a></li>-->
                <li><a href="data-visualization.html"><i class="fa fa-database fa-fw"></i>商品管理</a></li>
                <!--<li><a href="maps.html"><i class="fa fa-map-marker fa-fw"></i>Maps</a></li>
                <li><a href="manage-users.html"><i class="fa fa-users fa-fw"></i>Manage Users</a></li>-->
               <%-- <li><a href="preferences.html"><i class="fa fa-sliders fa-fw"></i>广告管理</a></li>--%>
                <li><a href="login.html" target="iframe"><i class="fa fa-eject fa-fw"></i>退出登录</a></li>
            </ul>
        </nav>
    </div>
    <!-- Main content -->
    <div class="templatemo-content col-1 light-gray-bg">
        <div class="templatemo-top-nav-container">
            <div class="row">
                <nav class="templatemo-top-nav col-lg-12 col-md-12">
                    <ul class="text-uppercase">
                        <li><a href="${pageContext.request.contextPath }/adminservlet?method=show&&page=1" target="iframe" >商品管理</a></li>
                        <li><a href="">系统消息</a></li>
                        <li><a href="">我的团队</a></li>
                        <li><a href="${pageContext.request.contextPath }/html/admin_login.jsp" target="iframe">管理员登录</a></li>
                    </ul>
                </nav>
            </div>
        </div>
        <div class="templatemo-content-container">
            <c:if test="${adminname!=null}">
                <iframe src="${pageContext.request.contextPath}/html/productManager.jsp" name="iframe" frameborder="0" style="overflow: hidden" height="900px" width="100%"></iframe>
            </c:if>
            <c:if test="${adminname==null}">
                <iframe src="${pageContext.request.contextPath}/html/admin_login.jsp" name="iframe" frameborder="0" style="overflow: hidden" height="900px" width="100%"></iframe>
            </c:if>
            </div>

    </div>
</div>

<!-- JS -->
<script src="${pageContext.request.contextPath}/js/jquery.min.js"></script>      <!-- jQuery -->
<script src="${pageContext.request.contextPath}/js/jquery-migrate-1.2.1.min.js"></script> <!--  jQuery Migrate Plugin -->
<script type="text/javascript" src="${pageContext.request.contextPath}/js/templatemo-script.js"></script>      <!-- Templatemo Script -->

</body>
</html>